Skip to content

don't render raw html or data/javascript URLs in crate readmes #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

QuietMisdreavus
Copy link
Member

Currently, when we render README files for viewing, we leave the output HTML untouched. However, this can lead to some malicious (or at least obstructive) files including javascript: or data: URLs which can create security risks.

There's an option in comrak's Markdown renderer to strip out all raw HTML elements and javascript:/data: URLs when it renders Markdown, so this PR sets that option when rendering README files.

@onur onur merged commit d993b18 into rust-lang:master Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants